FROM daocloud.io/ld00000/jdk-8:0.6.0

MAINTAINER <lidong@k2data.com.cn>

ENV K2_WORK_DIR /usr/local/k2alpha
ENV K2_JAR_NAME k2alpha-device.jar

RUN mkdir -p $K2_WORK_DIR

COPY ./target/$K2_JAR_NAME $K2_WORK_DIR/$K2_JAR_NAME

COPY ./entrypoint.sh $K2_WORK_DIR
RUN chmod u+x $K2_WORK_DIR/entrypoint.sh

WORKDIR $K2_WORK_DIR

ENTRYPOINT ["./entrypoint.sh"]

EXPOSE 8100
CMD []
